package com.ruoyi.core.vo;

import com.ruoyi.core.domain.SegmentTimeUnit;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Description:
 * @Company: 北京卡拉卡尔股份技术有限公司
 * @Author: Darren Ho
 * @Date: 9/29/2020 17:30
 */
public class BatchActivationCodeSummaryCreateOperationVo {

    /**
     * 激活码数量
     */
    @NotNull(message = "批量激活码数量 quantity 字段不能为空")
    private Long quantity;

    /**
     * 时效片段
     */
    @NotNull(message = "批量激活码时效 segment 字段不能为空")
    private Long segment;

    /**
     * 时效单位
     */
    private SegmentTimeUnit timeUnit = SegmentTimeUnit.DAY;

    @NotNull(message = "批量激活码激活客户端 productId 字段不能为空")
    @Size(min = 1,message = "批量激活码激活客户端 productId 字段不能为空集合")
    private List<Long> productIds;

    private String remark;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getSegment() {
        return segment;
    }

    public void setSegment(Long segment) {
        this.segment = segment;
    }

    public SegmentTimeUnit getTimeUnit() {
        return timeUnit;
    }

    public void setTimeUnit(SegmentTimeUnit timeUnit) {
        this.timeUnit = timeUnit;
    }

    public List<Long> getProductIds() {
        return productIds;
    }

    public void setProductIds(List<Long> productIds) {
        this.productIds = productIds;
    }
}
